<template>
    <div class="input-text">
        <i :class="icon"></i>
        <input :value="value" @input="$emit('input',$event.target.value)" :type="type" :placeholder="text">
    </div>
</template>

<script>
export default {
  name: "inputtext",
  props: ["icon", "text", "type","value"],
  data() {
      return {
      }
  },
};
</script>

<style scoped>
.input-text {
  width: 65%;
  height: 2rem;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #808080;
  margin-bottom: 1rem;
}
.input-text .iconfont {
  font-size: 1.5rem;
  line-height: 2rem;
  width: 20%;
  text-align: center;
}
.input-text input {
  border: 0;
  line-height: 2rem;
  background-color: #f5f5f5;
  font-size: 1rem;
  width: 80%;
}
</style>